package cn.edu.scau.cmi.leon;

public class PolicyProducer {
	public static AutoInsurance getPolicyObj(String option){
		AutoInsurance policy = null;
		if(option.compareTo("Body Injure") == 0){policy = new BodyInjur();}
		else if(option.compareTo("Collision") == 0){policy = new Collision();}
		else if(option.compareTo("Com") == 0){policy = new Com();}
		else if(option.compareTo("Person Injure") == 0){policy = new PersonInjur();}
		return policy;
	}
}
